package com.hk.kindheartedness.model;

import java.util.Date;

/**
 * @Author：alpha
 * @Create：2022/2/28/22:44
 * @Description：病历药物关系表（类似于处方）
 * @Version：1.0
 */
public class Prescription {

    /**
     * ID 唯一 （默认自增）
     */
    private Integer id;

    /**
     * 病历ID（多对一，一个病历多个药物）
     */
    private Integer caseHistoryId;

    /**
     * 药物名称
     */
    private String name;

    /**
     * 药物规格
     */
    private String model;

    /**
     * 单次剂量
     */
    private String singleDose;

    /**
     * 用法（口服或外用）
     */
    private String usage;

    /**
     * 频率
     * 示例：每日一次、每日三次
     */
    private String frequency;

    /**
     * 注意事项
     */
    private String attention;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCaseHistoryId() {
        return caseHistoryId;
    }

    public void setCaseHistoryId(Integer caseHistoryId) {
        this.caseHistoryId = caseHistoryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getSingleDose() {
        return singleDose;
    }

    public void setSingleDose(String singleDose) {
        this.singleDose = singleDose;
    }

    public String getUsage() {
        return usage;
    }

    public void setUsage(String usage) {
        this.usage = usage;
    }

    public String getFrequency() {
        return frequency;
    }

    public void setFrequency(String frequency) {
        this.frequency = frequency;
    }

    public String getAttention() {
        return attention;
    }

    public void setAttention(String attention) {
        this.attention = attention;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Prescription() {
        super();
    }

    public Prescription(Integer id, Integer caseHistoryId, String name, String model, String singleDose, String usage, String frequency, String attention, Date createTime, Date updateTime) {
        this.id = id;
        this.caseHistoryId = caseHistoryId;
        this.name = name;
        this.model = model;
        this.singleDose = singleDose;
        this.usage = usage;
        this.frequency = frequency;
        this.attention = attention;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Prescription{" +
                "id=" + id +
                ", caseHistoryId=" + caseHistoryId +
                ", name='" + name + '\'' +
                ", model='" + model + '\'' +
                ", singleDose='" + singleDose + '\'' +
                ", usage='" + usage + '\'' +
                ", frequency='" + frequency + '\'' +
                ", attention='" + attention + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
